<template>
  <div class="hot">
    <div class="banner">
      <img src="@/assets/hot_music_bg_2x.jpg" alt="" />
      <div class="info-box">
        <h3>云音乐</h3>
        <h1>热歌榜</h1>
        <h4>更新日期: 07月05日</h4>
      </div>
    </div>
    <div class="list-container">
      <div v-for="item in 10" :key="item" class="cell">
        <h4 class="index red">01</h4>
        <div class="content">
          <div class="left">
            <h3>终有一散的人们</h3>
            <p>周震男 - You jump,I jump</p>
          </div>
          <span>▶️</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HotView'
}
</script>

<style lang="less" scoped>
.hot {
  .banner {
    position: relative;
    height: 146px;
    padding: 20px;
    img {
      display: block;
      width: 100%;
      position: absolute;
      left: 0;
      top: 0;
    }
    .info-box {
      z-index: 998;
      position: relative;
      h3,
      h4 {
        font-weight: normal;
        color: white;
      }
      h3 {
        font-size: 18px;
      }
      h4 {
        font-size: 14px;
        margin-top: 10px;
      }
      h1 {
        color: white;
      }
    }
  }
  .list-container {
    padding: 0 3px;
    .cell {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .index {
        padding: 0 5px;
        font-weight: normal;
        font-size: 20px;
        &.red {
          color: #d43c33;
        }
      }
    }
    .content {
      padding: 5px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #efeff0;
      flex: 1;
      .left {
        flex: 1;
        h3 {
          font-weight: normal;
          font-size: 18px;
        }
        p {
          margin-top: 4px;
          font-size: 14px;
          color: #888888;
        }
      }
      span {
        font-size: 20px;
      }
    }
  }
}
</style>
